//
//  YZMHomePageCell.m
//  YZMicroStock
//
//  Created by apple on 2017/9/20.
//  Copyright © 2017年 cqjr. All rights reserved.
//

#import "YZMHomePageCell.h"

@interface YZMHomePageCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageViewIcon;

@property (weak, nonatomic) IBOutlet UILabel *labelInfo;

@property (weak, nonatomic) IBOutlet UILabel *labelSubInfo;

@end

@implementation YZMHomePageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.backgroundColor = [YZMAppStyle colorForMain];
    [YZMAppStyle addLineViewWithParentView:self.contentView color:[YZMAppStyle colorForLineOfCell]];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)configCellWithDic:(NSDictionary *)dic{
    self.imageViewIcon.image = [UIImage imageNamed:dic[@"imageName"]];
    self.labelInfo.text = dic[@"subtitle"];
    self.labelSubInfo.text = dic[@"time"];
}

@end
